const report = require('multiple-cucumber-html-reporter');

report.generate({
    jsonDir: 'test-results/',
    reportPath: '.',
    metadata: {
        browser: {
            name: 'chrome',
            version: '126.0.6478.127'
        },
        device: 'Local test machine',
        platform: {
            name: 'osx',
            version: '14.4.1'
        }
    },
    customData: {
        title: 'Run info',
        data: [
            {label: 'Project', value: 'My project'},
            {label: 'Release', value: '1.0.0'},
            {label: 'Tester', value: 'Janson Yu Chen'}
        ]
    },
    removeFolders: true // 在生成新报告之前移除旧的报告文件夹
})